3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and edit the ambient light of a view.
You can use the Q3AmbientLight_New function to create a new ambient light.
TQ3LightObject Q3AmbientLight_New (
const TQ3LightData *lightData);
You can use the Q3AmbientLight_GetData function to get the data that defines an ambient light.
TQ3Status Q3AmbientLight_GetData (
TQ3LightObject light,
TQ3LightData *lightData);
The Q3AmbientLight_GetData function returns, through the lightData parameter, information about the ambient light specified by the light parameter. See "Light Data Structure" for a description of a light data structure.
You can use the Q3AmbientLight_SetData function to set the data that defines an ambient light.
TQ3Status Q3AmbientLight_SetData (
TQ3LightObject light,
const TQ3LightData *lightData);
Previous | QD3D Book | Overview | Chapter Contents | Next |